Integrand size = 41, antiderivative size = 171 \[ \int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec (c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=\frac {2 A \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{a^{5/2} d}-\frac {(43 A-3 B-5 C) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \cos (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A-B+C) \sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2}}-\frac {(11 A-3 B-5 C) \sin (c+d x)}{16 a d (a+a \cos (c+d x))^{3/2}} \]
2*A*arctanh(sin(d*x+c)*a^(1/2)/(a+a*cos(d*x+c))^(1/2))/a^(5/2)/d-1/4*(A-B+ C)*sin(d*x+c)/d/(a+a*cos(d*x+c))^(5/2)-1/16*(11*A-3*B-5*C)*sin(d*x+c)/a/d/ (a+a*cos(d*x+c))^(3/2)-1/32*(43*A-3*B-5*C)*arctanh(1/2*sin(d*x+c)*a^(1/2)* 2^(1/2)/(a+a*cos(d*x+c))^(1/2))/a^(5/2)/d*2^(1/2)
Time = 1.85 (sec) , antiderivative size = 200, normalized size of antiderivative = 1.17 \[ \int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec (c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=-\frac {\cos ^5\left (\frac {1}{2} (c+d x)\right ) \cos (c+d x) (B+C \cos (c+d x)+A \sec (c+d x)) \left (2 (43 A-3 B-5 C) \text {arctanh}\left (\sin \left (\frac {1}{2} (c+d x)\right )\right )+\frac {-64 \sqrt {2} A \text {arctanh}\left (\sqrt {2} \sin \left (\frac {1}{2} (c+d x)\right )\right ) \cos ^4\left (\frac {1}{2} (c+d x)\right )+(15 A-7 B-C+(11 A-3 B-5 C) \cos (c+d x)) \sin \left (\frac {1}{2} (c+d x)\right )}{\left (-1+\sin ^2\left (\frac {1}{2} (c+d x)\right )\right )^2}\right )}{4 d (a (1+\cos (c+d x)))^{5/2} (2 A+C+2 B \cos (c+d x)+C \cos (2 (c+d x)))} \]
Integrate[((A + B*Cos[c + d*x] + C*Cos[c + d*x]^2)*Sec[c + d*x])/(a + a*Co s[c + d*x])^(5/2),x]
-1/4*(Cos[(c + d*x)/2]^5*Cos[c + d*x]*(B + C*Cos[c + d*x] + A*Sec[c + d*x] )*(2*(43*A - 3*B - 5*C)*ArcTanh[Sin[(c + d*x)/2]] + (-64*Sqrt[2]*A*ArcTanh [Sqrt[2]*Sin[(c + d*x)/2]]*Cos[(c + d*x)/2]^4 + (15*A - 7*B - C + (11*A - 3*B - 5*C)*Cos[c + d*x])*Sin[(c + d*x)/2])/(-1 + Sin[(c + d*x)/2]^2)^2))/( d*(a*(1 + Cos[c + d*x]))^(5/2)*(2*A + C + 2*B*Cos[c + d*x] + C*Cos[2*(c + d*x)]))
Time = 1.09 (sec) , antiderivative size = 183, normalized size of antiderivative = 1.07, number of steps used = 14, number of rules used = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.317, Rules used = {3042, 3520, 27, 3042, 3457, 27, 3042, 3464, 3042, 3128, 219, 3252, 219}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sec (c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(a \cos (c+d x)+a)^{5/2}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {A+B \sin \left (c+d x+\frac {\pi }{2}\right )+C \sin \left (c+d x+\frac {\pi }{2}\right )^2}{\sin \left (c+d x+\frac {\pi }{2}\right ) \left (a \sin \left (c+d x+\frac {\pi }{2}\right )+a\right )^{5/2}}dx\) |
\(\Big \downarrow \) 3520 |
\(\displaystyle \frac {\int \frac {(8 a A-a (3 A-3 B-5 C) \cos (c+d x)) \sec (c+d x)}{2 (\cos (c+d x) a+a)^{3/2}}dx}{4 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\int \frac {(8 a A-a (3 A-3 B-5 C) \cos (c+d x)) \sec (c+d x)}{(\cos (c+d x) a+a)^{3/2}}dx}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {8 a A-a (3 A-3 B-5 C) \sin \left (c+d x+\frac {\pi }{2}\right )}{\sin \left (c+d x+\frac {\pi }{2}\right ) \left (\sin \left (c+d x+\frac {\pi }{2}\right ) a+a\right )^{3/2}}dx}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 3457 |
\(\displaystyle \frac {\frac {\int \frac {\left (32 a^2 A-a^2 (11 A-3 B-5 C) \cos (c+d x)\right ) \sec (c+d x)}{2 \sqrt {\cos (c+d x) a+a}}dx}{2 a^2}-\frac {a (11 A-3 B-5 C) \sin (c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {\int \frac {\left (32 a^2 A-a^2 (11 A-3 B-5 C) \cos (c+d x)\right ) \sec (c+d x)}{\sqrt {\cos (c+d x) a+a}}dx}{4 a^2}-\frac {a (11 A-3 B-5 C) \sin (c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {\int \frac {32 a^2 A-a^2 (11 A-3 B-5 C) \sin \left (c+d x+\frac {\pi }{2}\right )}{\sin \left (c+d x+\frac {\pi }{2}\right ) \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{4 a^2}-\frac {a (11 A-3 B-5 C) \sin (c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 3464 |
\(\displaystyle \frac {\frac {32 a A \int \sqrt {\cos (c+d x) a+a} \sec (c+d x)dx-a^2 (43 A-3 B-5 C) \int \frac {1}{\sqrt {\cos (c+d x) a+a}}dx}{4 a^2}-\frac {a (11 A-3 B-5 C) \sin (c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {32 a A \int \frac {\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}{\sin \left (c+d x+\frac {\pi }{2}\right )}dx-a^2 (43 A-3 B-5 C) \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{4 a^2}-\frac {a (11 A-3 B-5 C) \sin (c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 3128 |
\(\displaystyle \frac {\frac {\frac {2 a^2 (43 A-3 B-5 C) \int \frac {1}{2 a-\frac {a^2 \sin ^2(c+d x)}{\cos (c+d x) a+a}}d\left (-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x) a+a}}\right )}{d}+32 a A \int \frac {\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}{\sin \left (c+d x+\frac {\pi }{2}\right )}dx}{4 a^2}-\frac {a (11 A-3 B-5 C) \sin (c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {\frac {32 a A \int \frac {\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}{\sin \left (c+d x+\frac {\pi }{2}\right )}dx-\frac {\sqrt {2} a^{3/2} (43 A-3 B-5 C) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a \cos (c+d x)+a}}\right )}{d}}{4 a^2}-\frac {a (11 A-3 B-5 C) \sin (c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 3252 |
\(\displaystyle \frac {\frac {-\frac {64 a^2 A \int \frac {1}{a-\frac {a^2 \sin ^2(c+d x)}{\cos (c+d x) a+a}}d\left (-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x) a+a}}\right )}{d}-\frac {\sqrt {2} a^{3/2} (43 A-3 B-5 C) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a \cos (c+d x)+a}}\right )}{d}}{4 a^2}-\frac {a (11 A-3 B-5 C) \sin (c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {\frac {\frac {64 a^{3/2} A \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a \cos (c+d x)+a}}\right )}{d}-\frac {\sqrt {2} a^{3/2} (43 A-3 B-5 C) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a \cos (c+d x)+a}}\right )}{d}}{4 a^2}-\frac {a (11 A-3 B-5 C) \sin (c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B+C) \sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}}\) |
-1/4*((A - B + C)*Sin[c + d*x])/(d*(a + a*Cos[c + d*x])^(5/2)) + (((64*a^( 3/2)*A*ArcTanh[(Sqrt[a]*Sin[c + d*x])/Sqrt[a + a*Cos[c + d*x]]])/d - (Sqrt [2]*a^(3/2)*(43*A - 3*B - 5*C)*ArcTanh[(Sqrt[a]*Sin[c + d*x])/(Sqrt[2]*Sqr t[a + a*Cos[c + d*x]])])/d)/(4*a^2) - (a*(11*A - 3*B - 5*C)*Sin[c + d*x])/ (2*d*(a + a*Cos[c + d*x])^(3/2)))/(8*a^2)
3.5.22.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[-2/d Subst[Int[1/(2*a - x^2), x], x, b*(Cos[c + d*x]/Sqrt[a + b*Sin[c + d*x]])], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/((c_.) + (d_.)*sin[(e_.) + ( f_.)*(x_)]), x_Symbol] :> Simp[-2*(b/f) Subst[Int[1/(b*c + a*d - d*x^2), x], x, b*(Cos[e + f*x]/Sqrt[a + b*Sin[e + f*x]])], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim p[b*(A*b - a*B)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^( n + 1)/(a*f*(2*m + 1)*(b*c - a*d))), x] + Simp[1/(a*(2*m + 1)*(b*c - a*d)) Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n*Simp[B*(a*c*m + b *d*(n + 1)) + A*(b*c*(m + 1) - a*d*(2*m + n + 2)) + d*(A*b - a*B)*(m + n + 2)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ [b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && LtQ[m, -2^(-1)] && !GtQ[n, 0] && IntegerQ[2*m] && (IntegerQ[2*n] || EqQ[c, 0])
Int[((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])/(Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])), x_Symbol] :> Simp[(A *b - a*B)/(b*c - a*d) Int[1/Sqrt[a + b*Sin[e + f*x]], x], x] + Simp[(B*c - A*d)/(b*c - a*d) Int[Sqrt[a + b*Sin[e + f*x]]/(c + d*Sin[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f, A, B}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(a*A - b*B + a*C)*Cos[e + f*x]*(a + b* Sin[e + f*x])^m*((c + d*Sin[e + f*x])^(n + 1)/(f*(b*c - a*d)*(2*m + 1))), x ] + Simp[1/(b*(b*c - a*d)*(2*m + 1)) Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n*Simp[A*(a*c*(m + 1) - b*d*(2*m + n + 2)) + B*(b*c*m + a *d*(n + 1)) - C*(a*c*m + b*d*(n + 1)) + (d*(a*A - b*B)*(m + n + 2) + C*(b*c *(2*m + 1) - a*d*(m - n - 1)))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c ^2 - d^2, 0] && LtQ[m, -2^(-1)]
Leaf count of result is larger than twice the leaf count of optimal. \(532\) vs. \(2(146)=292\).
Time = 14.62 (sec) , antiderivative size = 533, normalized size of antiderivative = 3.12
method | result | size |
default | \(\frac {\sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (16 A \sqrt {2}\, \ln \left (\frac {2 \sqrt {2}\, a \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}+4 a}{2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\sqrt {2}}\right ) a \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+16 A \sqrt {2}\, \ln \left (-\frac {2 \left (\sqrt {2}\, a \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-\sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}-2 a \right )}{2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-\sqrt {2}}\right ) a \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-43 A \ln \left (\frac {2 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+2 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+3 B \ln \left (\frac {2 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+2 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a +5 C \ln \left (\frac {2 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+2 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a -11 A \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+3 B \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+5 C \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 A \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}+2 B \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}-2 C \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}\right ) \sqrt {2}}{32 a^{\frac {7}{2}} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}\) | \(533\) |
parts | \(-\frac {A \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (43 \sqrt {2}\, \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-32 \ln \left (\frac {4 \sqrt {2}\, a \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+4 \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}+8 a}{2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\sqrt {2}}\right ) \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a -32 \ln \left (-\frac {4 \left (\sqrt {2}\, a \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-\sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}-2 a \right )}{2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-\sqrt {2}}\right ) \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a +11 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {2}\, \sqrt {a}+2 \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}\right )}{32 a^{\frac {7}{2}} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}+\frac {B \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (3 \ln \left (\frac {2 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+2 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a +3 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+2 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\right ) \sqrt {2}}{32 a^{\frac {7}{2}} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}+\frac {C \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (5 \ln \left (\frac {2 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+2 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a +5 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}-2 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\right ) \sqrt {2}}{32 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} a^{\frac {7}{2}} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}\) | \(657\) |
int((A+B*cos(d*x+c)+C*cos(d*x+c)^2)*sec(d*x+c)/(a+cos(d*x+c)*a)^(5/2),x,me thod=_RETURNVERBOSE)
1/32/a^(7/2)/cos(1/2*d*x+1/2*c)^3*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)*(16*A*2^( 1/2)*ln(2/(2*cos(1/2*d*x+1/2*c)+2^(1/2))*(2^(1/2)*a*cos(1/2*d*x+1/2*c)+2^( 1/2)*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)*a^(1/2)+2*a))*a*cos(1/2*d*x+1/2*c)^4+1 6*A*2^(1/2)*ln(-2/(2*cos(1/2*d*x+1/2*c)-2^(1/2))*(2^(1/2)*a*cos(1/2*d*x+1/ 2*c)-2^(1/2)*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)*a^(1/2)-2*a))*a*cos(1/2*d*x+1/ 2*c)^4-43*A*ln(2*(a^(1/2)*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)+a)/cos(1/2*d*x+1/ 2*c))*a*cos(1/2*d*x+1/2*c)^4+3*B*ln(2*(a^(1/2)*(a*sin(1/2*d*x+1/2*c)^2)^(1 /2)+a)/cos(1/2*d*x+1/2*c))*cos(1/2*d*x+1/2*c)^4*a+5*C*ln(2*(a^(1/2)*(a*sin (1/2*d*x+1/2*c)^2)^(1/2)+a)/cos(1/2*d*x+1/2*c))*cos(1/2*d*x+1/2*c)^4*a-11* A*cos(1/2*d*x+1/2*c)^2*a^(1/2)*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)+3*B*cos(1/2* d*x+1/2*c)^2*a^(1/2)*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)+5*C*a^(1/2)*(a*sin(1/2 *d*x+1/2*c)^2)^(1/2)*cos(1/2*d*x+1/2*c)^2-2*A*(a*sin(1/2*d*x+1/2*c)^2)^(1/ 2)*a^(1/2)+2*B*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)*a^(1/2)-2*C*(a*sin(1/2*d*x+1 /2*c)^2)^(1/2)*a^(1/2))/sin(1/2*d*x+1/2*c)*2^(1/2)/(a*cos(1/2*d*x+1/2*c)^2 )^(1/2)/d
Leaf count of result is larger than twice the leaf count of optimal. 357 vs. \(2 (146) = 292\).
Time = 0.33 (sec) , antiderivative size = 357, normalized size of antiderivative = 2.09 \[ \int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec (c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=-\frac {\sqrt {2} {\left ({\left (43 \, A - 3 \, B - 5 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (43 \, A - 3 \, B - 5 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (43 \, A - 3 \, B - 5 \, C\right )} \cos \left (d x + c\right ) + 43 \, A - 3 \, B - 5 \, C\right )} \sqrt {a} \log \left (-\frac {a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {a} \sin \left (d x + c\right ) - 2 \, a \cos \left (d x + c\right ) - 3 \, a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) - 32 \, {\left (A \cos \left (d x + c\right )^{3} + 3 \, A \cos \left (d x + c\right )^{2} + 3 \, A \cos \left (d x + c\right ) + A\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - 4 \, \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {a} {\left (\cos \left (d x + c\right ) - 2\right )} \sin \left (d x + c\right ) + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + 4 \, {\left ({\left (11 \, A - 3 \, B - 5 \, C\right )} \cos \left (d x + c\right ) + 15 \, A - 7 \, B - C\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{64 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}} \]
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)^2)*sec(d*x+c)/(a+a*cos(d*x+c))^(5/2 ),x, algorithm="fricas")
-1/64*(sqrt(2)*((43*A - 3*B - 5*C)*cos(d*x + c)^3 + 3*(43*A - 3*B - 5*C)*c os(d*x + c)^2 + 3*(43*A - 3*B - 5*C)*cos(d*x + c) + 43*A - 3*B - 5*C)*sqrt (a)*log(-(a*cos(d*x + c)^2 - 2*sqrt(2)*sqrt(a*cos(d*x + c) + a)*sqrt(a)*si n(d*x + c) - 2*a*cos(d*x + c) - 3*a)/(cos(d*x + c)^2 + 2*cos(d*x + c) + 1) ) - 32*(A*cos(d*x + c)^3 + 3*A*cos(d*x + c)^2 + 3*A*cos(d*x + c) + A)*sqrt (a)*log((a*cos(d*x + c)^3 - 7*a*cos(d*x + c)^2 - 4*sqrt(a*cos(d*x + c) + a )*sqrt(a)*(cos(d*x + c) - 2)*sin(d*x + c) + 8*a)/(cos(d*x + c)^3 + cos(d*x + c)^2)) + 4*((11*A - 3*B - 5*C)*cos(d*x + c) + 15*A - 7*B - C)*sqrt(a*co s(d*x + c) + a)*sin(d*x + c))/(a^3*d*cos(d*x + c)^3 + 3*a^3*d*cos(d*x + c) ^2 + 3*a^3*d*cos(d*x + c) + a^3*d)
\[ \int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec (c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=\int \frac {\left (A + B \cos {\left (c + d x \right )} + C \cos ^{2}{\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}}{\left (a \left (\cos {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \]
Integral((A + B*cos(c + d*x) + C*cos(c + d*x)**2)*sec(c + d*x)/(a*(cos(c + d*x) + 1))**(5/2), x)
Timed out. \[ \int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec (c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=\text {Timed out} \]
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)^2)*sec(d*x+c)/(a+a*cos(d*x+c))^(5/2 ),x, algorithm="maxima")
Leaf count of result is larger than twice the leaf count of optimal. 314 vs. \(2 (146) = 292\).
Time = 8.78 (sec) , antiderivative size = 314, normalized size of antiderivative = 1.84 \[ \int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec (c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=-\frac {\frac {64 \, A \log \left (\frac {{\left | -2 \, \sqrt {2} + 4 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}{{\left | 2 \, \sqrt {2} + 4 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}\right )}{a^{\frac {5}{2}} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} + \frac {\sqrt {2} {\left (43 \, A \sqrt {a} - 3 \, B \sqrt {a} - 5 \, C \sqrt {a}\right )} \log \left (\sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a^{3} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} - \frac {\sqrt {2} {\left (43 \, A \sqrt {a} - 3 \, B \sqrt {a} - 5 \, C \sqrt {a}\right )} \log \left (-\sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a^{3} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} - \frac {2 \, {\left (11 \, \sqrt {2} A \sqrt {a} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 3 \, \sqrt {2} B \sqrt {a} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 5 \, \sqrt {2} C \sqrt {a} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 13 \, \sqrt {2} A \sqrt {a} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 5 \, \sqrt {2} B \sqrt {a} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 3 \, \sqrt {2} C \sqrt {a} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{2} a^{3} \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{64 \, d} \]
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)^2)*sec(d*x+c)/(a+a*cos(d*x+c))^(5/2 ),x, algorithm="giac")
-1/64*(64*A*log(abs(-2*sqrt(2) + 4*sin(1/2*d*x + 1/2*c))/abs(2*sqrt(2) + 4 *sin(1/2*d*x + 1/2*c)))/(a^(5/2)*sgn(cos(1/2*d*x + 1/2*c))) + sqrt(2)*(43* A*sqrt(a) - 3*B*sqrt(a) - 5*C*sqrt(a))*log(sin(1/2*d*x + 1/2*c) + 1)/(a^3* sgn(cos(1/2*d*x + 1/2*c))) - sqrt(2)*(43*A*sqrt(a) - 3*B*sqrt(a) - 5*C*sqr t(a))*log(-sin(1/2*d*x + 1/2*c) + 1)/(a^3*sgn(cos(1/2*d*x + 1/2*c))) - 2*( 11*sqrt(2)*A*sqrt(a)*sin(1/2*d*x + 1/2*c)^3 - 3*sqrt(2)*B*sqrt(a)*sin(1/2* d*x + 1/2*c)^3 - 5*sqrt(2)*C*sqrt(a)*sin(1/2*d*x + 1/2*c)^3 - 13*sqrt(2)*A *sqrt(a)*sin(1/2*d*x + 1/2*c) + 5*sqrt(2)*B*sqrt(a)*sin(1/2*d*x + 1/2*c) + 3*sqrt(2)*C*sqrt(a)*sin(1/2*d*x + 1/2*c))/((sin(1/2*d*x + 1/2*c)^2 - 1)^2 *a^3*sgn(cos(1/2*d*x + 1/2*c))))/d
Timed out. \[ \int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec (c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=\int \frac {C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A}{\cos \left (c+d\,x\right )\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{5/2}} \,d x \]